package com.financial.business.yspay.mq;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author WANGNING
 * @description 金融中心银盛mq配置
 * @email wyn20140226@aliyun.com
 * @date 2019/11/13 9:06 AM
 */
@Component
public class FinancialYsMQConfig {
    public static String TOPIC;
    public static String GROUP_ID;
    public static final String ACCESS_KEY = "LTAIkLoCSLqX7QFG";
    public static final String SECRET_KEY = "anr8xwxEFrN4Rq0Gjw5MXxELuDb12V";
    public static final String NAMESRV_ADDR = "http://onsaddr.mq-internet-access.mq-internet.aliyuncs.com:80";

    /*注入对应中心的topic*/
    @Value("${RocketMQ_Key.YS.Topic}")
    private void setTOPIC(String TOPIC) {
        FinancialYsMQConfig.TOPIC = TOPIC;

    }

    /*注入对应中心的groupId*/
    @Value("${RocketMQ_Key.YS.GroupId}")
    private void setGroupId(String groupId) {
        FinancialYsMQConfig.GROUP_ID = groupId;
    }

    /**
     * 银盛微信支付异步回执tag
     */
    public static final String YS_PAY_WECHAT_TAG = "YSPAYWECHATTAG";

    /**
     * 银盛支付宝支付异步回执tag
     */
    public static final String YS_PAY_ALIPAY_TAG="YSPAYALIPAYTAG";

    /**
     * 银盛分账tag
     */
    public static final String YS_SERVICE_SPLIT_TAG="SPLITTAG";

    /**
     * 银盛提现tag
     */
    public static final String YS_SERVICE_WITHDRAWAL_TAG="WITHDRAWALTAG";

    /**
     * 银盛代付tag
     */
    public static final String YS_SERVICE_PAYMENT_TAG="PAYMENTTAG";
    /*消费者订阅全部tag*/
    public static final String ALL_TAG = "*";
}
